package com.itheima.service;

import com.itheima.dto.SelectEmpDTO;
import com.itheima.po.*;
import com.itheima.pojo.Emp;
import com.itheima.pojo.Result;

import java.util.List;

public interface EmpService {
    Result deleteByIds(List<Integer> ids);

    PageVO<SelectEmpDTO> selectEmpPage(SelectEmpPageParam selectEmpPageParam);

    /**
     * 添加员工
     * @param emp
     * @return
     */
    int addEmp(InsertEmp emp);

    SelectEmpById selectById(Integer id);

    int updateEmp(UpdateEmp emp);

    List<SelectEmpList> selectAll();

}
